package com.itheima.health.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.health.pojo.Menu;
import org.apache.ibatis.annotations.Select;

public interface MenuMapper extends BaseMapper<Menu> {

    @Select("select name from t_menu where id = #{parentMenuId}")
    String findParentNameByParentId(Integer parentMenuId);


    @Select("select id from t_menu where name = #{parentName}")
    Integer getParentMenuIdByParentName(String parentName);
}
